package com.yonyou.cyxdms.basedata.service.vo.brand;

import com.yonyou.cyxdms.basedata.service.vo.model.ModelDictVO;

import java.util.List;

/**
 * AllModelVo
 *
 * @author LiJun
 * @Description
 * @date 2019/8/26 10:48
 */
public class AllModelVo {
    private Long modelId;
    private String appId;
    private String dealerCode;
    private Long seriesId;
    /**
     * modelCode
     */
    private String value;

    private String dataSources;
    /**
     * modelName
     */
    private String text;

    private List<AllPackageVo> children;

    public Long getModelId() {
        return modelId;
    }

    public void setModelId(Long modelId) {
        this.modelId = modelId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

    public Long getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Long seriesId) {
        this.seriesId = seriesId;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDataSources() {
        return dataSources;
    }

    public void setDataSources(String dataSources) {
        this.dataSources = dataSources;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }


    public List<AllPackageVo> getChildren() {
        return children;
    }

    public void setChildren(List<AllPackageVo> children) {
        this.children = children;
    }

    public AllModelVo() {
    }

    public AllModelVo(String name, String code, List<AllPackageVo> children) {
        this.text = name;
        this.value = code;
        this.children = children;
    }

    public AllModelVo(ModelDictVO vo) {
        this.modelId = vo.getModelId();
        this.dealerCode = vo.getDealerCode();
        this.appId = vo.getAppId();
        this.seriesId = vo.getSeriesId();
        this.value = vo.getModelCode();
        this.text = vo.getModelName();
        this.dataSources = vo.getDataSources();
    }
}
